using Unity.Mathematics;
using UnityEngine;

[CreateAssetMenu(fileName = "DamageAndStrengthDeBuffEffect", menuName = "Card Effect/DamageAndStrengthDeBuffEffect")]
public class DamageAndStrengthDeBuffEffect : Effect
{
    public override void Excute(CharacterBase from, CharacterBase target)
    {
        switch (targetType)
        {
            case EffectTargetType.Target:
                var damage = (int)math.round(value * from.baseStrength);
                target.TakeDamage(damage);
                target.SetUpStrength(secondValue,buffPercent,false);
                break;
        }
    }
}
